获取核身结果
按商户拉起核身时预下单的单号获取该次微工卡核身的结果
请求参数 | 类型 | 描述 |
---|---|---|
authenticate_number | string | 商家核身单号 |
query | object | 声明请求的查询参数 |
sub_mchid | string | 子商户号 |
php
$instance->v3->payrollCard->authentications->_authenticate_number_->getAsync([
'authenticate_number' => 'mcdhehfgisdhfjghed39384564i83',
'query' => [
'sub_mchid' => '1111111',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/payroll-card/authentications/{authenticate_number}')->getAsync([
'authenticate_number' => 'mcdhehfgisdhfjghed39384564i83',
'query' => [
'sub_mchid' => '1111111',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/payroll-card/authentications/{authenticate_number}']->getAsync([
'authenticate_number' => 'mcdhehfgisdhfjghed39384564i83',
'query' => [
'sub_mchid' => '1111111',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->payrollCard->authentications->_authenticate_number_->get([
'authenticate_number' => 'mcdhehfgisdhfjghed39384564i83',
'query' => [
'sub_mchid' => '1111111',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/payroll-card/authentications/{authenticate_number}')->get([
'authenticate_number' => 'mcdhehfgisdhfjghed39384564i83',
'query' => [
'sub_mchid' => '1111111',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/payroll-card/authentications/{authenticate_number}']->get([
'authenticate_number' => 'mcdhehfgisdhfjghed39384564i83',
'query' => [
'sub_mchid' => '1111111',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
mchid | string | 商户号 |
sub_mchid | string | 子商户号 |
openid | string | 用户标识 |
authenticate_scene | string | 核身渠道 |
authenticate_source | string | 核身渠道标识 |
project_name | string | 项目名称 |
employer_name | string | 单位名称 |
authenticate_state | string | 核身状态AUTHENTICATE_PROCESSING | AUTHENTICATE_SUCCESS | AUTHENTICATE_FAILED 枚举值之一 |
authenticate_time | string | 核身时间 |
authenticate_number | string | 商家核身单号 |
authenticate_failed_reason | string | 核身失败原因 |
参阅 官方文档